package com.thd.springboottest.ioc.testextend;

import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.stereotype.Component;

@Component

public class LunyuBook implements ChineseBook {
    @Override
    public String getSelfName() {
        return "论语 lun yu";
    }

    @Override
    public String getName() {
        return "论语";
    }

    @Override
    public String toString() {
        return this.getName();
    }
}
